// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_FIN_CUSTOMER_ACCOUNT
// * CreateDate    : 2014-06-05 18:29:48
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:29:48
// * LastChanger   : 2014-06-05 18:29:48
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class FinCustomerAccountTable : TableInfo
    {
		public const string C_TableName = "FIN_CUSTOMER_ACCOUNT";
		
		public const string C_CUSTOMER_ACCOUNT_ID = "CUSTOMER_ACCOUNT_ID";
		public const string C_CUSTOMER_ID = "CUSTOMER_ID";
		public const string C_SALES_ORDER_AMOUNT = "SALES_ORDER_AMOUNT";
		public const string C_BILLING_AMOUNT = "BILLING_AMOUNT";
		public const string C_RECEIVED_AMOUNT = "RECEIVED_AMOUNT";
		public const string C_RECEIVABLE_AMOUNT = "RECEIVABLE_AMOUNT";
		public const string C_DELIVERY_AMOUNT_NO_BILLING = "DELIVERY_AMOUNT_NO_BILLING";
		public const string C_DELIVERY_AMOUNT_BILLED = "DELIVERY_AMOUNT_BILLED";
		public const string C_SALES_AMOUNT = "SALES_AMOUNT";
		
		public FinCustomerAccountTable()
        {
            _tableName = "FIN_CUSTOMER_ACCOUNT";
        }
		
		protected static FinCustomerAccountTable _current;
        public static FinCustomerAccountTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new FinCustomerAccountTable();

            _current.Add(C_CUSTOMER_ACCOUNT_ID, new ColumnInfo(C_CUSTOMER_ACCOUNT_ID,"CustomerAccountId", true, typeof(string)));
            _current.Add(C_CUSTOMER_ID, new ColumnInfo(C_CUSTOMER_ID,"CustomerId", false, typeof(string)));
            _current.Add(C_SALES_ORDER_AMOUNT, new ColumnInfo(C_SALES_ORDER_AMOUNT,"SalesOrderAmount", false, typeof(decimal)));
            _current.Add(C_BILLING_AMOUNT, new ColumnInfo(C_BILLING_AMOUNT,"BillingAmount", false, typeof(decimal)));
            _current.Add(C_RECEIVED_AMOUNT, new ColumnInfo(C_RECEIVED_AMOUNT,"ReceivedAmount", false, typeof(decimal)));
            _current.Add(C_RECEIVABLE_AMOUNT, new ColumnInfo(C_RECEIVABLE_AMOUNT,"ReceivableAmount", false, typeof(decimal)));
            _current.Add(C_DELIVERY_AMOUNT_NO_BILLING, new ColumnInfo(C_DELIVERY_AMOUNT_NO_BILLING,"DeliveryAmountNoBilling", false, typeof(decimal)));
            _current.Add(C_DELIVERY_AMOUNT_BILLED, new ColumnInfo(C_DELIVERY_AMOUNT_BILLED,"DeliveryAmountBilled", false, typeof(decimal)));
            _current.Add(C_SALES_AMOUNT, new ColumnInfo(C_SALES_AMOUNT,"SalesAmount", false, typeof(decimal)));
			
		}
		
		public ColumnInfo CUSTOMER_ACCOUNT_ID
        {
            get { return this[C_CUSTOMER_ACCOUNT_ID]; }
        }
		
		public ColumnInfo CUSTOMER_ID
        {
            get { return this[C_CUSTOMER_ID]; }
        }
		
		public ColumnInfo SALES_ORDER_AMOUNT
        {
            get { return this[C_SALES_ORDER_AMOUNT]; }
        }
		
		public ColumnInfo BILLING_AMOUNT
        {
            get { return this[C_BILLING_AMOUNT]; }
        }
		
		public ColumnInfo RECEIVED_AMOUNT
        {
            get { return this[C_RECEIVED_AMOUNT]; }
        }
		
		public ColumnInfo RECEIVABLE_AMOUNT
        {
            get { return this[C_RECEIVABLE_AMOUNT]; }
        }
		
		public ColumnInfo DELIVERY_AMOUNT_NO_BILLING
        {
            get { return this[C_DELIVERY_AMOUNT_NO_BILLING]; }
        }
		
		public ColumnInfo DELIVERY_AMOUNT_BILLED
        {
            get { return this[C_DELIVERY_AMOUNT_BILLED]; }
        }
		
		public ColumnInfo SALES_AMOUNT
        {
            get { return this[C_SALES_AMOUNT]; }
        }
		
		
		
	}
}

